package com.linln.component.shiro.token;

import org.apache.shiro.authc.AuthenticationToken;
public class UserIdToken implements AuthenticationToken {
    private final Long userId;

    public UserIdToken(Long userId) {
        this.userId = userId;
    }

    @Override
    public Object getPrincipal() {
        return userId;
    }

    @Override
    public Object getCredentials() {
        return ""; // 不需要密码凭证
    }
}
